package cn.kent.consumer;

import cn.kent.config.RabbitConfig;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
public class MsgReceiver {
    private static final Logger LOGGER = LoggerFactory.getLogger(MsgReceiver.class);

    @RabbitListener(queues = RabbitConfig.DELAY_MSG_QUEUE_NAME)
    public void handlerMsg(String msg) {
        LOGGER.info("handlerMsg ==> {}", msg);
    }
}
